package com.medical.goods.dao;

import com.medical.goods.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.goods.entity.vo.OrderAuditVo;
import com.medical.goods.entity.vo.OrderDeliverVo;
import com.medical.goods.entity.vo.OrderVo;
import com.medical.goods.entity.vo.OrdercheckVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-08-13 20:42:37
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    List<OrderVo> orderist(OrderVo orderVo);

    OrdercheckVo check(Integer id);

    Integer deliver(@Param("id")Integer id,
                    @Param("logisticsName") String logisticsName,
                    @Param("logisticsOdd") String logisticsOdd,
                    @Param("logisiticsType") String logisiticsType,
                    @Param("logisticsPrice") String logisticsPrice,
                    @Param("logisticsRemark") String logisticsRemark);

    OrderAuditVo audit(Integer id);

    Integer submit(Integer id,Integer dispose, String remark);
}
